<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>button1</title>
</head>
<body>
<button id="one">你好</button>
<div>
    前方       有    多余   空格
</div>

<script style="white-space: pre" src="JsForbutton1.js"></script>
</body>
</html>